﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack) {
                ViewState["time"] = System.DateTime.Now.ToString();
            }
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            time.Text =Convert.ToString(ViewState["time"]);
            message.Text = "请确认您填写的信息：";
            name.Text = "姓名："+_name.Text;
            age.Text = "年龄："+_age.Text;
            habit.Text = "爱好："+_habit.Text;
        }

        protected void Button2_Click(object sender, EventArgs e)
        {

        }
    }
}